from app import db


class Teacher(db.Model):
    __tablename__ = 'tbl_teacher'
    Tea_id = db.Column(db.String(10), primary_key=True)
    Tea_log_id = db.Column(db.String(10), nullable=False)
    Tea_name = db.Column(db.String(50), nullable=False)

    def to_json(self):
        return {
            "Tea_id": self.Tea_id,
            "Tea_log_id": self.Tea_log_id,
            "Tea_name": self.Tea_name,
        }
